﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ArrayAsParam
{
    class ArrayChange
    {
        public void changeArray(int[] arr1, int[] arr2, int[] arr3)
        {
            for (int i = 0; i < arr1.Length; i++)
            {
                if (i % 2 != 0)
                    arr2[i] = 0;
            }

            for (int i = 0; i < arr2.Length; i++)
            {
                if (i % 2 != 0)
                    arr3[i] = 0;
            }
            
            for (int i = 0; i < arr3.Length - 1; i++)
            {
                if (i % 2 == 0)
                {
                    arr1[i] = 1;
                }
                else if(i % 2 != 0)
                {
                    arr1[i] = 0;
                }
            }
        }
        public void printArray(int[] arr)
        {
            foreach (var item in arr)
            {
                Console.WriteLine(item);
            }
        }
    }
}
